package cate.game.rank.h;

import cate.game.rank.po.Rank;
import cate.game.rank.po.RankSPO;
import cate.game.role.Role;

public abstract class ConditionRankHandler<E extends RankSPO<T>, T extends Rank> extends RankHandler<E, T> implements IConditionRankHandler{
    /**
     * 记录,默认只支持一个value的排行
     */
    @Override
    public void record(Role role, long newValue) {
        if (newValue < getConditionValue()) {
            return;
        }
        super.record(role, newValue);
    }
}
